package org.opentcs.kcvehicle.communication.kc.udp.agv.param.function.af;

import org.opentcs.kcvehicle.communication.kc.common.byteutils.ByteUtils;

public class AbnormalEventStatusInfo {
  private byte[] src;
  //事件码,2个字节
  public byte[] eventCode;
  //异常等级,2个字节
  public byte[] abnormalLevel;
  //remain,8个字节
  public byte[] remain;

  public AbnormalEventStatusInfo(byte[] src) {
    this.src = src;
    this.eventCode = ByteUtils.copyBytes(src, 0, 2);
    this.abnormalLevel = ByteUtils.copyBytes(src, 2, 2);
    this.remain = ByteUtils.copyBytes(src, 4, 8);
  }
}
